package com.surprise.biz.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.surprise.db.dao.UserDAO;
import com.surprise.db.po.User;

/**
 * UserService.java
 * @author nick
 * @since 2015年9月17日
 */
@Component
public class UserService {

	@Autowired
	private UserDAO userDAO;
	
	public List<User> getUserByRole(int role) {
		return userDAO.getUserByRole(role);
	}
}
